package com.lyf.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.lyf.dao.base.BaseDao;
import com.lyf.pojo.Contactnote;

@Repository
public class ContactNoteDao extends BaseDao<Contactnote, String>{

	public List<Contactnote> findAllById(String id) {
		String hql = "from Contactnote where contactid = ? order by createtime desc";
		return findByAllHql(hql, id);
	}

	public List<Contactnote> findByAllDesc(String fid) {
		String hql = "from Contactnote where fid = ? order by createtime desc";
		return findByAllHql(hql, fid);
	}

}
